'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/admin/login', controller.admin.signin);
  router.post('/admin/signout',controller.admin.signout);
  router.post('/admin/signup',controller.admin.signup);
  router.post('/admin/changePassWord',controller.admin.changePassWord);
  router.get('/admin/getUserData',controller.admin.getUserData);
  router.post('/admin/silenceUser',controller.admin.silenceUser);
  router.post('/admin/bannedUser',controller.admin.bannedUser);
  
  router.post('/article/clear',controller.article.clear);
  router.post('/article/createArticle',controller.article.createArticle);
  router.get('/article/getArticleData',controller.article.getArticleData);
  router.post('/article/passArticle',controller.article.passArticle);
  router.post('/article/deleteArticle',controller.article.deleteArticle);
};
